package com.panshi.mapper;

import com.panshi.entity.AppPraiseTread;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 点赞、踩 mapper
 */
@Mapper
public interface PraiseTreadMapper {

    /**
     * 判断用户是否点赞(回答/回答评论)
     * @param praiseTread
     * @return
     */
    AppPraiseTread estimate(@Param("praiseTread") AppPraiseTread praiseTread);

    /**
     * 添加点赞、踩记录
     * @param praiseTread
     */
    Integer addPraiseTread(@Param("praiseTread") AppPraiseTread praiseTread);

}
